package routers

import (
	"github.com/gin-gonic/gin"
	"shop-admin/controller"
)

func privateFile(router *gin.RouterGroup) {
	//附件上传-包含切片上传
	fileController := &controller.FileController{}
	api := router.Group("/file")
	{
		api.POST("/upload", fileController.Upload)
		api.POST("/chunk", fileController.Chunk)
		api.DELETE("/delete/expire", fileController.DeleteExpireFile)
	}
}
